function onSortChange() {
    var dropdown = document.getElementById("sortType");
    location.href = dropdown.options[dropdown.selectedIndex].value;
}